package com.express.e.root.dao;

import com.express.e.root.bean.Delivery;

import java.util.List;

public interface DeliveryDao {

    Boolean addDelivery(Delivery delivery);

    Boolean deleteDelivery(String deliveryNum);

    Boolean fetchDelivery(String deliveryNum);

    List<Delivery> queryByList(int pageIndex,int pageSize);

    Boolean updateDelivery(Delivery delivery);

    Delivery queryById(int deliveryId);

    Integer total();

    Boolean codeIsRepeated(Integer code);

    Delivery queryByCode(Integer code);

    List<Delivery> queryAll();

    Delivery queryByNum(String deliveryNum);

    Delivery queryByName(String deliveryName);

    Delivery queryByPhone(String phone);

    List queryListByName(String name);

    List queryListByCourier(String courierName);
}

